package br.com.fiap.goaround.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.quartz.JobExecutionException;

import br.com.fiap.goaround.scheduler.SchedulerJob;

public class QuartzServlet extends HttpServlet{
	
	private static final long serialVersionUID = 7241959676864774635L;

	public void init() throws ServletException {  
		SchedulerJob job = SchedulerJob.getInstance();
		try {
			job.run();
		} catch (JobExecutionException e) {
			e.printStackTrace();
		}
    } 
}
